Skip to content

[Feat](TimeTravel) Time Travel for Cloud / Decoupled Mode#65431

Draft
nsivarajan wants to merge 5 commits into
apache:masterfrom
nsivarajan:time-travel-pr
Draft

[Feat](TimeTravel) Time Travel for Cloud / Decoupled Mode#65431
nsivarajan wants to merge 5 commits into
apache:masterfrom
nsivarajan:time-travel-pr

Conversation

@nsivarajan

@nsivarajan nsivarajan commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #65422

Related PR: #xxx

Problem Summary:

Modern analytical workloads require querying data as it existed at a specific point in time — for audit trails, data debugging, incremental pipeline recovery, and regulatory compliance.

Apache Doris cloud/decoupled mode currently has no mechanism to read historical versions of a table. Once data is compacted or overwritten, earlier states are unrecoverable from SQL.

Requested syntax:

SELECT * FROM orders FOR TIME AS OF '2024-01-15 10:00:00';

CREATE TABLE snapshot AS
    SELECT * FROM orders FOR TIME AS OF '2024-01-15 10:00:00';

Supported on all DML table models: Duplicate Key, Unique Key (MoW), and Aggregate Key.

Solution

Key design points

Per-table opt-in — zero overhead for non-TT tables:

 CREATE TABLE orders (...)
 PROPERTIES (
     "enable_time_travel"         = "true",
     "time_travel_retention_days" = "7"
 );

Two-level FDB index (cloud mode):

Level 1: sparse version index — one FDB key per commit per partition (T → V mapping)
Level 2: compaction checkpoint — pre-compaction rowset manifests written before each cumulative compaction, so historical reads survive compaction
One batch RPC resolves all partitions and fetches all manifests in a single FDB transaction — consistent snapshot across all partitions, one network round trip.

Post-compaction correctness — the critical test: a query at timestamp T returns identical results before and after compaction of the rowsets that covered T.

Outcome

MySQL [tt_test_db]> select * from tt_travel_v5;
+------+-----------+--------+
| id   | status    | amount |
+------+-----------+--------+
|    4 | shipped   | 400.00 |
|    5 | delivered | 500.00 |
|    6 | delivered | 600.00 |
|    2 | pending   | 200.00 |
|    1 | pending   | 100.00 |
|    3 | shipped   | 300.00 |
|    7 | delivered | 700.00 |
|    8 | delivered | 800.00 |
+------+-----------+--------+
8 rows in set (0.055 sec)

MySQL [tt_test_db]> SELECT * FROM tt_travel_v5 FOR TIME AS OF '2026-07-05 17:07:35' ORDER BY id;
+------+---------+--------+
| id   | status  | amount |
+------+---------+--------+
|    1 | pending | 100.00 |
|    2 | pending | 200.00 |
+------+---------+--------+
2 rows in set (0.037 sec)

MySQL [tt_test_db]>

Scope

Cloud/decoupled mode only (this PR)
Coupled/local storage mode: same architecture, separate follow-up (~40% effort)
SHOW TIME TRAVEL ON : listed as future work

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@nsivarajan nsivarajan force-pushed the time-travel-pr branch 2 times, most recently from 80c9145 to a3a74b9 Compare July 10, 2026 05:35
@nsivarajan

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 28.13% (128/455) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 29695 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit a3a74b997ce2929ceb0e234049bad8f34bead14d, data reload: false

------ Round 1 ----------------------------------
============================================
q1	17679	4186	4169	4169
q2	1997	330	220	220
q3	10365	1434	844	844
q4	4683	482	341	341
q5	7484	860	606	606
q6	192	180	144	144
q7	794	852	610	610
q8	9317	1517	1579	1517
q9	5762	4406	4406	4406
q10	6794	1831	1526	1526
q11	519	351	321	321
q12	760	551	432	432
q13	18077	3390	2742	2742
q14	271	263	263	263
q15	q16	796	782	712	712
q17	987	999	1017	999
q18	7026	5900	5474	5474
q19	1362	1340	1067	1067
q20	756	656	516	516
q21	6011	2690	2484	2484
q22	445	361	302	302
Total cold run time: 102077 ms
Total hot run time: 29695 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4510	4440	4496	4440
q2	315	323	235	235
q3	4666	5051	4394	4394
q4	2135	2237	1383	1383
q5	4573	4439	4381	4381
q6	248	185	134	134
q7	1799	1642	1464	1464
q8	2451	2151	2094	2094
q9	7367	7358	7394	7358
q10	4701	4640	4258	4258
q11	560	405	375	375
q12	768	756	552	552
q13	3023	3411	2735	2735
q14	278	307	267	267
q15	q16	694	711	620	620
q17	1311	1298	1297	1297
q18	7540	7033	6885	6885
q19	1092	1070	1092	1070
q20	2250	2214	1931	1931
q21	5425	4812	4636	4636
q22	557	458	407	407
Total cold run time: 56263 ms
Total hot run time: 50916 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 180975 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit a3a74b997ce2929ceb0e234049bad8f34bead14d, data reload: false

query5	4308	642	489	489
query6	463	217	206	206
query7	4828	584	349	349
query8	331	191	168	168
query9	8781	4079	4124	4079
query10	454	370	305	305
query11	5879	2402	2189	2189
query12	161	103	103	103
query13	1266	607	438	438
query14	6957	5342	4956	4956
query14_1	4381	4352	4329	4329
query15	219	221	186	186
query16	1021	470	477	470
query17	1139	763	585	585
query18	2775	480	339	339
query19	204	184	151	151
query20	109	105	104	104
query21	228	157	131	131
query22	13720	13658	13484	13484
query23	17409	16564	16179	16179
query23_1	16435	16298	16307	16298
query24	7431	1765	1319	1319
query24_1	1331	1328	1296	1296
query25	549	422	361	361
query26	1310	358	213	213
query27	2571	608	382	382
query28	4410	2053	2036	2036
query29	1065	628	471	471
query30	338	251	228	228
query31	1111	1096	976	976
query32	112	60	61	60
query33	527	326	244	244
query34	1185	1152	654	654
query35	780	787	671	671
query36	1389	1406	1209	1209
query37	157	108	96	96
query38	1888	1696	1648	1648
query39	922	923	901	901
query39_1	883	910	866	866
query40	245	158	143	143
query41	66	62	63	62
query42	101	94	95	94
query43	333	331	285	285
query44	1472	795	786	786
query45	199	208	182	182
query46	1049	1269	762	762
query47	2319	2317	2198	2198
query48	413	412	312	312
query49	593	449	328	328
query50	1129	448	337	337
query51	10923	10550	10784	10550
query52	93	92	79	79
query53	269	283	210	210
query54	311	254	247	247
query55	79	77	68	68
query56	302	327	297	297
query57	1420	1399	1303	1303
query58	275	268	266	266
query59	1599	1676	1451	1451
query60	316	287	260	260
query61	177	174	175	174
query62	692	670	596	596
query63	248	210	208	208
query64	2900	1161	916	916
query65	4889	4800	4756	4756
query66	1762	507	383	383
query67	29584	29564	29376	29376
query68	3194	1575	911	911
query69	402	299	275	275
query70	1122	994	984	984
query71	352	314	298	298
query72	3005	2697	2428	2428
query73	856	760	429	429
query74	5111	5017	4805	4805
query75	2612	2572	2227	2227
query76	2347	1208	803	803
query77	375	391	301	301
query78	12251	12380	11756	11756
query79	1378	1218	785	785
query80	1310	536	462	462
query81	533	325	279	279
query82	675	157	127	127
query83	377	329	294	294
query84	279	161	132	132
query85	950	589	498	498
query86	444	290	279	279
query87	1856	1826	1753	1753
query88	3736	2859	2787	2787
query89	459	406	365	365
query90	1981	203	195	195
query91	205	189	161	161
query92	63	60	57	57
query93	1639	1487	1007	1007
query94	731	332	335	332
query95	768	585	488	488
query96	997	834	349	349
query97	2673	2680	2571	2571
query98	217	206	203	203
query99	1144	1176	1028	1028
Total cold run time: 267236 ms
Total hot run time: 180975 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 25.01 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit a3a74b997ce2929ceb0e234049bad8f34bead14d, data reload: false

query1	0.00	0.01	0.01
query2	0.10	0.05	0.04
query3	0.26	0.14	0.14
query4	1.60	0.13	0.14
query5	0.25	0.23	0.22
query6	1.25	1.07	1.06
query7	0.04	0.01	0.00
query8	0.06	0.04	0.04
query9	0.38	0.33	0.32
query10	0.57	0.55	0.55
query11	0.20	0.15	0.15
query12	0.17	0.14	0.14
query13	0.48	0.48	0.48
query14	1.02	1.00	1.00
query15	0.64	0.59	0.61
query16	0.31	0.32	0.33
query17	1.15	1.13	1.10
query18	0.23	0.22	0.22
query19	2.05	2.04	1.97
query20	0.01	0.01	0.01
query21	15.41	0.22	0.14
query22	4.85	0.06	0.05
query23	16.15	0.34	0.12
query24	2.94	0.42	0.32
query25	0.11	0.06	0.05
query26	0.77	0.21	0.14
query27	0.04	0.04	0.04
query28	3.48	0.98	0.51
query29	12.48	4.01	3.21
query30	0.26	0.16	0.16
query31	2.77	0.60	0.32
query32	3.24	0.60	0.48
query33	3.22	3.15	3.18
query34	15.76	4.24	3.51
query35	3.52	3.54	3.53
query36	0.55	0.44	0.42
query37	0.08	0.08	0.06
query38	0.06	0.04	0.03
query39	0.04	0.03	0.03
query40	0.18	0.17	0.16
query41	0.09	0.04	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.03
Total cold run time: 96.85 s
Total hot run time: 25.01 s

@nsivarajan nsivarajan force-pushed the time-travel-pr branch 2 times, most recently from 8ecbea0 to 435ab05 Compare July 10, 2026 10:39
@nsivarajan

Copy link
Copy Markdown
Contributor Author

run buildall

@nsivarajan nsivarajan force-pushed the time-travel-pr branch 2 times, most recently from 597c51b to 2061c1a Compare July 10, 2026 16:10
@nsivarajan

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 29385 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 2061c1aebb37320894d7b64ab59248bd0cc110ac, data reload: false

------ Round 1 ----------------------------------
============================================
q1	17787	4054	4049	4049
q2	2020	326	200	200
q3	10306	1437	833	833
q4	4677	469	339	339
q5	7529	832	562	562
q6	180	167	138	138
q7	747	849	622	622
q8	9344	1524	1629	1524
q9	5635	4452	4372	4372
q10	6818	1782	1587	1587
q11	507	354	313	313
q12	712	561	420	420
q13	18135	3377	2802	2802
q14	264	264	253	253
q15	q16	778	780	708	708
q17	984	892	970	892
q18	6854	5815	5558	5558
q19	1145	1282	1003	1003
q20	780	644	530	530
q21	5641	2507	2387	2387
q22	427	354	293	293
Total cold run time: 101270 ms
Total hot run time: 29385 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4371	4270	4265	4265
q2	280	321	209	209
q3	4530	4909	4387	4387
q4	2029	2139	1348	1348
q5	4429	4330	4271	4271
q6	245	175	126	126
q7	1783	1628	1814	1628
q8	2563	2122	2192	2122
q9	7799	7856	7804	7804
q10	4708	4755	4196	4196
q11	567	418	412	412
q12	745	747	530	530
q13	3416	3646	2957	2957
q14	284	309	285	285
q15	q16	736	746	638	638
q17	1360	1323	1305	1305
q18	7999	7479	7401	7401
q19	1053	1039	1066	1039
q20	2216	2218	1944	1944
q21	5258	4515	4357	4357
q22	518	445	394	394
Total cold run time: 56889 ms
Total hot run time: 51618 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 179583 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 2061c1aebb37320894d7b64ab59248bd0cc110ac, data reload: false

query5	4326	630	495	495
query6	461	239	195	195
query7	4982	606	352	352
query8	346	194	170	170
query9	8827	4054	4014	4014
query10	505	343	322	322
query11	5892	2351	2194	2194
query12	176	99	100	99
query13	1279	583	422	422
query14	6249	5275	4969	4969
query14_1	4261	4261	4294	4261
query15	224	209	176	176
query16	1019	492	439	439
query17	916	706	551	551
query18	2415	465	333	333
query19	208	182	138	138
query20	108	105	105	105
query21	231	154	131	131
query22	13631	13600	13445	13445
query23	17330	16476	16149	16149
query23_1	16184	16288	16191	16191
query24	7464	1824	1284	1284
query24_1	1312	1317	1317	1317
query25	574	475	392	392
query26	1360	362	206	206
query27	2667	556	392	392
query28	4513	2006	2007	2006
query29	1077	626	517	517
query30	332	268	228	228
query31	1125	1097	978	978
query32	114	63	61	61
query33	528	323	262	262
query34	1192	1109	645	645
query35	761	771	669	669
query36	1387	1398	1229	1229
query37	150	106	91	91
query38	1884	1707	1655	1655
query39	932	945	881	881
query39_1	869	873	890	873
query40	235	157	136	136
query41	67	62	62	62
query42	100	90	92	90
query43	315	319	268	268
query44	1395	781	771	771
query45	195	185	184	184
query46	1047	1218	730	730
query47	2288	2303	2220	2220
query48	407	430	300	300
query49	585	421	315	315
query50	1016	427	314	314
query51	10942	10535	10845	10535
query52	83	88	73	73
query53	259	277	203	203
query54	290	246	220	220
query55	75	71	69	69
query56	296	300	278	278
query57	1423	1411	1331	1331
query58	279	261	252	252
query59	1555	1628	1399	1399
query60	319	272	250	250
query61	155	150	157	150
query62	683	642	588	588
query63	240	203	208	203
query64	2809	1022	903	903
query65	4857	4750	4737	4737
query66	1832	527	399	399
query67	29599	29447	29223	29223
query68	3428	1587	961	961
query69	417	302	270	270
query70	1096	979	991	979
query71	350	325	298	298
query72	3037	2684	2376	2376
query73	839	799	425	425
query74	5090	4932	4735	4735
query75	2609	2594	2218	2218
query76	2313	1174	807	807
query77	345	377	275	275
query78	12448	12510	11733	11733
query79	1447	1133	773	773
query80	714	541	460	460
query81	475	332	280	280
query82	560	164	126	126
query83	384	324	292	292
query84	341	163	129	129
query85	936	619	505	505
query86	380	288	293	288
query87	1834	1826	1748	1748
query88	3704	2830	2791	2791
query89	457	401	359	359
query90	1864	203	197	197
query91	218	209	174	174
query92	67	64	58	58
query93	1602	1518	1038	1038
query94	611	355	330	330
query95	796	604	473	473
query96	1035	763	341	341
query97	2711	2683	2564	2564
query98	216	209	200	200
query99	1138	1172	1025	1025
Total cold run time: 265068 ms
Total hot run time: 179583 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 25.83 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 2061c1aebb37320894d7b64ab59248bd0cc110ac, data reload: false

query1	0.01	0.01	0.01
query2	0.14	0.09	0.08
query3	0.38	0.24	0.24
query4	1.64	0.24	0.25
query5	0.33	0.32	0.32
query6	1.17	0.67	0.66
query7	0.04	0.00	0.00
query8	0.08	0.07	0.07
query9	0.52	0.38	0.38
query10	0.60	0.61	0.61
query11	0.31	0.18	0.17
query12	0.32	0.19	0.19
query13	0.52	0.53	0.54
query14	0.93	0.93	0.93
query15	0.68	0.59	0.59
query16	0.38	0.39	0.40
query17	1.05	1.03	1.04
query18	0.30	0.28	0.28
query19	1.92	1.83	1.85
query20	0.02	0.01	0.01
query21	15.43	0.37	0.32
query22	4.80	0.15	0.14
query23	15.85	0.49	0.30
query24	2.32	0.65	0.47
query25	0.15	0.11	0.10
query26	0.74	0.28	0.22
query27	0.10	0.10	0.10
query28	3.62	0.91	0.52
query29	12.45	4.28	3.31
query30	0.37	0.26	0.25
query31	2.77	0.60	0.34
query32	3.22	0.59	0.48
query33	3.07	3.01	2.96
query34	15.71	4.13	3.40
query35	3.29	3.28	3.29
query36	0.65	0.52	0.50
query37	0.12	0.10	0.09
query38	0.08	0.06	0.07
query39	0.07	0.06	0.05
query40	0.22	0.18	0.18
query41	0.14	0.09	0.07
query42	0.08	0.06	0.06
query43	0.07	0.08	0.07
Total cold run time: 96.66 s
Total hot run time: 25.83 s

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 29.94% (141/471) 🎉
Increment coverage report
Complete coverage report

@nsivarajan nsivarajan force-pushed the time-travel-pr branch 2 times, most recently from 4103bba to 859298f Compare July 11, 2026 07:37
@nsivarajan

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 24.70% (163/660) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 29728 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 859298f5e1ca0100cdcf8a0e9ddf69218013c3ae, data reload: false

------ Round 1 ----------------------------------
============================================
q1	17589	4074	4056	4056
q2	2006	331	198	198
q3	10961	1516	844	844
q4	4744	476	339	339
q5	8462	874	578	578
q6	364	181	145	145
q7	858	834	614	614
q8	10636	1589	1538	1538
q9	5945	4399	4384	4384
q10	6863	1789	1506	1506
q11	503	347	329	329
q12	740	577	427	427
q13	18111	3405	2804	2804
q14	267	261	254	254
q15	q16	794	770	704	704
q17	994	1026	947	947
q18	6935	5824	5613	5613
q19	1163	1315	1109	1109
q20	773	642	571	571
q21	5638	2719	2471	2471
q22	440	359	297	297
Total cold run time: 104786 ms
Total hot run time: 29728 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4399	4261	4267	4261
q2	289	310	213	213
q3	4562	4957	4430	4430
q4	2067	2156	1353	1353
q5	4556	4299	4540	4299
q6	269	218	152	152
q7	2115	1798	1647	1647
q8	2414	2226	2085	2085
q9	8030	7799	7901	7799
q10	4732	4936	4275	4275
q11	560	395	376	376
q12	769	743	547	547
q13	3173	3627	2997	2997
q14	315	291	276	276
q15	q16	705	742	638	638
q17	1369	1340	1314	1314
q18	8012	7377	6761	6761
q19	1087	1100	1091	1091
q20	2231	2279	1933	1933
q21	5288	4577	4477	4477
q22	536	477	419	419
Total cold run time: 57478 ms
Total hot run time: 51343 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 180033 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 859298f5e1ca0100cdcf8a0e9ddf69218013c3ae, data reload: false

query5	4336	641	488	488
query6	456	226	200	200
query7	4841	599	346	346
query8	343	200	175	175
query9	8759	4090	4102	4090
query10	473	347	302	302
query11	5932	2376	2136	2136
query12	154	101	99	99
query13	1317	631	433	433
query14	6261	5283	4916	4916
query14_1	4324	4279	4283	4279
query15	212	212	185	185
query16	1078	493	438	438
query17	1142	746	594	594
query18	2682	475	358	358
query19	211	191	156	156
query20	114	108	104	104
query21	235	157	136	136
query22	13603	13584	13416	13416
query23	17534	16621	16239	16239
query23_1	16372	16223	16227	16223
query24	7445	1796	1325	1325
query24_1	1351	1316	1320	1316
query25	584	475	397	397
query26	1332	348	208	208
query27	2619	563	386	386
query28	4465	2045	1980	1980
query29	1068	614	474	474
query30	340	259	223	223
query31	1109	1101	976	976
query32	110	61	60	60
query33	528	314	251	251
query34	1165	1147	666	666
query35	768	787	677	677
query36	1392	1417	1217	1217
query37	154	106	92	92
query38	1878	1707	1671	1671
query39	912	914	892	892
query39_1	889	875	889	875
query40	250	162	140	140
query41	66	63	64	63
query42	95	93	92	92
query43	326	327	275	275
query44	1441	791	770	770
query45	201	187	173	173
query46	1059	1225	749	749
query47	2312	2317	2243	2243
query48	378	405	308	308
query49	580	440	306	306
query50	1052	431	328	328
query51	11024	10995	10718	10718
query52	86	90	74	74
query53	265	286	205	205
query54	278	248	220	220
query55	79	77	66	66
query56	334	283	303	283
query57	1409	1412	1299	1299
query58	274	254	250	250
query59	1596	1666	1418	1418
query60	299	277	261	261
query61	155	151	146	146
query62	698	654	578	578
query63	248	207	207	207
query64	2831	1039	880	880
query65	4918	4794	4783	4783
query66	1777	519	394	394
query67	29483	29477	29332	29332
query68	3186	1657	983	983
query69	419	312	270	270
query70	1055	955	947	947
query71	349	321	304	304
query72	3177	2718	2364	2364
query73	856	753	441	441
query74	5132	4995	4757	4757
query75	2630	2585	2221	2221
query76	2313	1201	795	795
query77	357	382	291	291
query78	12374	12328	11994	11994
query79	1467	1147	766	766
query80	642	551	462	462
query81	462	326	291	291
query82	573	155	125	125
query83	405	320	289	289
query84	282	156	130	130
query85	933	625	526	526
query86	362	303	274	274
query87	1831	1817	1737	1737
query88	3797	2817	2768	2768
query89	444	405	360	360
query90	1976	199	192	192
query91	200	188	167	167
query92	67	66	60	60
query93	1610	1528	1058	1058
query94	566	376	344	344
query95	764	514	470	470
query96	1022	775	370	370
query97	2700	2671	2539	2539
query98	211	211	204	204
query99	1147	1169	1028	1028
Total cold run time: 265762 ms
Total hot run time: 180033 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 25.96 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 859298f5e1ca0100cdcf8a0e9ddf69218013c3ae, data reload: false

query1	0.01	0.01	0.01
query2	0.14	0.08	0.08
query3	0.37	0.24	0.24
query4	1.65	0.25	0.24
query5	0.33	0.32	0.32
query6	1.16	0.67	0.68
query7	0.04	0.01	0.01
query8	0.09	0.07	0.07
query9	0.53	0.38	0.38
query10	0.60	0.60	0.60
query11	0.32	0.19	0.19
query12	0.32	0.19	0.18
query13	0.54	0.55	0.54
query14	0.93	0.93	0.94
query15	0.69	0.61	0.62
query16	0.38	0.39	0.39
query17	1.05	1.05	1.03
query18	0.33	0.30	0.30
query19	1.88	1.79	1.78
query20	0.02	0.01	0.02
query21	15.40	0.40	0.32
query22	4.71	0.13	0.13
query23	15.84	0.51	0.31
query24	2.56	0.61	0.41
query25	0.15	0.10	0.10
query26	0.76	0.27	0.22
query27	0.11	0.10	0.10
query28	3.52	0.90	0.52
query29	12.49	4.30	3.35
query30	0.36	0.28	0.26
query31	2.76	0.63	0.34
query32	3.23	0.63	0.48
query33	3.03	3.00	3.00
query34	15.72	4.28	3.42
query35	3.34	3.32	3.29
query36	0.64	0.54	0.51
query37	0.13	0.10	0.10
query38	0.09	0.07	0.07
query39	0.07	0.06	0.06
query40	0.22	0.19	0.17
query41	0.13	0.09	0.09
query42	0.09	0.06	0.06
query43	0.08	0.07	0.07
Total cold run time: 96.81 s
Total hot run time: 25.96 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Time Travel: SELECT ... FOR TIME AS OF '<timestamp>' in cloud/decoupled mode

2 participants